package com.alibaba.cirtus.ots.application.adapter.ability.model.api;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
@Data
public class CreateFulfillmentOrderDetailOpenApiDTO {
    @NotBlank(
            message = "DELIVERY-F-107-00-00-048,来源单行号"
    )
    @Length(
            message = "DELIVERY-F-107-00-00-049,来源单行号,50",
            max = 50
    )
    private String sourceOrderLineNo;
    @NotBlank(
            message = "DELIVERY-F-107-00-00-048,业务单据主单号"
    )
    @Length(
            message = "DELIVERY-F-107-00-00-049,业务单据主单号,50",
            max = 50
    )
    private String refOrderNo;
    @Length(
            message = "DELIVERY-F-107-00-00-049,业务单据行号,50",
            max = 50
    )
    private String refOrderLineNo;
    @NotBlank(
            message = "DELIVERY-F-107-00-00-048,业务单据创建时间"
    )
    @Length(
            message = "DELIVERY-F-107-00-00-049,业务单据创建时间,19",
            max = 19
    )
    private String refOrderCreateTime;
    @NotBlank(
            message = "DELIVERY-F-107-00-00-048,物料编码"
    )
    @Length(
            message = "DELIVERY-F-107-00-00-049,物料编码,50",
            max = 50
    )
    private String materialCode;
    @Length(
            message = "DELIVERY-F-107-00-00-049,生产日期,10",
            max = 10
    )
    private String productionDate;
    @NotBlank(
            message = "DELIVERY-F-107-00-00-048,销售单位编码"
    )
    @Length(
            message = "DELIVERY-F-107-00-00-049,销售单位编码,50",
            max = 50
    )
    private String salesUnitCode;
    @NotBlank(
            message = "DELIVERY-F-107-00-00-048,销售数量"
    )
    @Length(
            message = "DELIVERY-F-107-00-00-049,销售数量,10",
            max = 10
    )
    private String saleQuantity;
    @NotBlank(
            message = "DELIVERY-F-107-00-00-048,库存单位编码"
    )
    @Length(
            message = "DELIVERY-F-107-00-00-049,库存单位编码,50",
            max = 50
    )
    private String shippingUnitCode;
    @NotBlank(
            message = "DELIVERY-F-107-00-00-048,库存单位数量"
    )
    @Length(
            message = "DELIVERY-F-107-00-00-049,库存单位数量,15",
            max = 15
    )
    private String quantity;
    @Length(
            message = "DELIVERY-F-107-00-00-049,行备注,200",
            max = 200
    )
    private String remark;
    @Length(
            message = "DELIVERY-F-107-00-00-049,扩展字段（明细）,1024",
            max = 1024
    )
    private String bizFeatures;
    @Length(
            message = "DELIVERY-F-107-00-00-049,批次号,50",
            max = 50
    )
    private String batchNo;
}
